package service;

import com.github.pagehelper.PageInfo;
import entity.Admin;
import entity.LayRequest;
import org.apache.ibatis.annotations.Delete;

import java.util.List;
import java.util.Map;

public interface AdminService {

    boolean insert(Admin admin);

    Admin selectByAccount(String account);
    Admin selectById(Integer id);
    PageInfo<Admin> selectByPage(Map<String,Object> map);

    boolean delete(Integer id);

    boolean update(Admin admin);

    boolean updateHeadPic(Admin admin);

    PageInfo<Admin> selectByPage(LayRequest layRequest);
}
